package com.wanke.client;

import com.wanke.base.dto.ResultObject;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import io.vertx.core.Future;

import java.util.Map;
import java.util.Optional;

@Headers({ "Accept: application/json" })
public interface AuthClient {

    @RequestLine("POST /login/loginByPhone?phone={phone}&password={password}&systemId={systemId}")
    @Headers({ "Accept: application/json", "access-token: {token}" })
    public Future<ResultObject<Map<String,Object>>> login(@Param("phone") String phone,
                                              @Param("password") String password,
                                              @Param("systemId") String systemId)
            throws Exception;
}

